﻿/*
 *       This file is part of VFC.
 *
 *        VFC is free software: you can redistribute it and/or modify
 *        it under the terms of the GNU General Public License as published by
 *        the Free Software Foundation, either version 3 of the License, or
 *        (at your option) any later version.
 *
 *        VFC is distributed in the hope that it will be useful,
 *        but WITHOUT ANY WARRANTY; without even the implied warranty of
 *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *        GNU General Public License for more details.
 *
 *        You should have received a copy of the GNU General Public License
 *        along with VFC.  If not, see <http://www.gnu.org/licenses/>.
 */


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
//using System.Linq;
using System.Text;
using System.Windows.Forms;
using VFC.Emu;

namespace VFC
{
    public partial class frmRomViewer : Form
    {
        public frmRomViewer()
        {
            InitializeComponent();
        }

        private void frmRomViewer_Load(object sender, EventArgs e)
        {
            str.Top = 0;
            str.Left = 0;
            str.Width = this.Width -8;
            str.Height = this.Height - 26;
            try
            {
                str.Text = EmuCore.rom.GetRomString();
                str.SelectionStart = 0;
            }
            catch
            {
                Console.WriteLine("WARNING: Please load a rom first.");
            }
        }
    }
}
